package com.sketch.controller;

import com.sketch.commom.PageResult;
import com.sketch.commom.Result;
import com.sketch.entity.dto.ActivityConfigDTO;
import com.sketch.entity.dto.VipPriceDTO;
import com.sketch.service.ActivityConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Api(tags = "活动配置管理 API")
@RequestMapping(value = "/api/activityConfig")
public class ActivityConfigController {
    @Resource
    private ActivityConfigService activityConfigService;
    /**
     * 列表
     */
    @GetMapping("/list")
    @ApiOperation("列表")
    public Result<List<ActivityConfigDTO>> list() {
        return activityConfigService.list();
    }
}
